package com.woniu.park.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author cxb
 * @since 2020-09-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sp_user")
public class User implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * 真实姓名
     */
    private String userName;

    /**
     * 昵称
     */
    private String userLogin;

    /**
     * 电话
     */
    private String userTel;

    /**
     * 余额
     */
    private Double userBalance;

    /**
     * 密码
     */
    private String userPassword;

    /**
     * 身份证号码
     */
    @TableField("user_idNumber")
    private String userIdnumber;

    /**
     * 盐值
     */
    private String userSault;

    /**
     * 车牌
     */
    private String userCarId;

    /**
     * 行驶证
     */
    private String userLicense;

    /*
        注册生成的邀请码
     */
    private String userRegistNumber;

    /*
        被邀请的邀请码
     */
    private String userRegistIsnumber;
    /*
        用户消费总额
     */
    private double userTotalConsumption;
    /*
        用户类型
        0:租客  1:出租方
     */
    private int userType;

        private int userMessageStatus;//是否短信登录(1/2)
}
